package com.lsa.southwind.controller;


import com.lsa.southwind.form.RuleForm;
import com.lsa.southwind.service.SystemAdminService;
import com.lsa.southwind.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/systemAdmin")
public class SystemAdminController {
    @Autowired
    private SystemAdminService systemAdminService;

    @GetMapping("/login")
    public ResultVo login(RuleForm ruleForm) {
        ResultVo resultVologin = this.systemAdminService.login(ruleForm);
        System.out.println(resultVologin);
        return resultVologin;
    }
}

